const time = (end) => {
   var  dateEnd = new Date(end)
  var   dateBegin = new Date()
    var dateDiff = dateEnd.getTime() - dateBegin.getTime();
    var dayDiff = Math.ceil(dateDiff / (3600 * 1000));//计算出相差天数
    //yyyy-MM-dd HH:mm:ss
    return dayDiff

}
export default   time